//
//  LSLayout.h
//  LookScore
//
//  Created by nice on 2018/7/23.
//  Copyright © 2018年 ChongQingXunTiCompany. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LSCompetitionModel.h"
#import <YYKit.h>
@interface LSLayout : NSObject
- (instancetype)initWith:(LSCompetitionModel *)model;

- (void)layout;

@property (nonatomic, strong) LSCompetitionModel * model;

//顶部的view
@property (nonatomic, strong) YYTextLayout * cupLayout;
@property (nonatomic, strong) YYTextLayout * timeLayout;
@property (nonatomic, strong) YYTextLayout * stateLayout;
@property (nonatomic, assign) BOOL runBallIsHidden;
@property (nonatomic, assign) BOOL secondLabelISHidden;
@property (nonatomic, assign) CGFloat firstH;

//中间的view
@property (nonatomic, strong) YYTextLayout * scoreLayout;
@property (nonatomic, strong) YYTextLayout * hostNameLayout;
@property (nonatomic, strong) YYTextLayout * hostRankLayout;
@property (nonatomic, strong) YYTextLayout * guestNameLayout;
@property (nonatomic, strong) YYTextLayout * guestRankLayout;
@property (nonatomic, assign) CGFloat secondH;
@property (nonatomic, assign) BOOL homeRankHidden;
@property (nonatomic, assign) BOOL guestRankHidden;

//底部的view
@property (nonatomic, strong) YYTextLayout * banLayout;
@property (nonatomic, strong) YYTextLayout * homeRedLayout;
@property (nonatomic, strong) YYTextLayout * homeYellowLayout;

@property (nonatomic, strong) YYTextLayout * jiaoLayout;
@property (nonatomic, strong) YYTextLayout * guestRedLayout;
@property (nonatomic, strong) YYTextLayout * guestYellowLayout;

@property (nonatomic, assign) BOOL hasJiaoqiu;

@property (nonatomic, assign) CGFloat bottomH;
@end
